package phapp.model.system;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javacommon.base.BaseEntity;

/**
 * Title: t_keyword_data 数据类 POJO Description: DAO层映射到数据类,页面封装数据映射到数据类
 * Copyright: Copyright (c) 2012-10 Company:
 * 
 * @author you name
 * @version 1.0
 */

public class Keyword extends BaseEntity
{

   // date formats

   // columns START
   /** keyWord */
   private java.lang.String keyWord;
   /** keyId */
   private java.lang.Integer keyId;

   private java.util.ArrayList idList;

   // columns END

   public Keyword()
   {
   }

   public void setId(java.lang.Integer value)
   {
      this.keyId = value;
   }

   public java.lang.Integer getId()
   {
      return this.keyId;
   }
   
   public Keyword(java.lang.Integer keyId)
   {
      this.keyId = keyId;
   }

   public void setKeyWord(java.lang.String value)
   {
      this.keyWord = value;
   }

   public java.lang.String getKeyWord()
   {
      return this.keyWord;
   }

   public void setKeyId(java.lang.Integer value)
   {
      this.keyId = value;
   }

   public java.lang.Integer getKeyId()
   {
      return this.keyId;
   }

   public java.util.ArrayList getIdList()
   {
      return idList;
   }

   public void setIdList(java.util.ArrayList idList)
   {
      this.idList = idList;
   }

   /** 手动增加属性后,toString,hashCode,equals都要修改 */
   public String toString()
   {
      return new ToStringBuilder(this).append("KeyWord", getKeyWord()).append("KeyId", getKeyId()).toString();
   }

   public int hashCode()
   {
      return new HashCodeBuilder().append(getKeyWord()).append(getKeyId()).toHashCode();
   }

   public boolean equals(Object obj)
   {
      if (obj instanceof Keyword == false) return false;
      if (this == obj) return true;
      Keyword other = (Keyword) obj;
      return new EqualsBuilder().append(getKeyWord(), other.getKeyWord()).append(getKeyId(), other.getKeyId()).isEquals();
   }
}
